package com.bw.zonghe0719.room

import android.app.Application
import androidx.room.Room

object AppDBUtils {
    private lateinit var appDataBase: AppDataBase
    fun init(application: Application){
        appDataBase=Room.databaseBuilder(application,AppDataBase::class.java,"room.ZongHe0719")
            .allowMainThreadQueries()
            .build()
    }
    fun getData()= appDataBase
}